#include "stdio.h"

void bta( unsigned int value)
{
    unsigned int q;
    q = value / 10;
    if( q != 0) bta( q );
    putchar(value % 10 + '0');
    printf(" ");
}
int main()
{
    unsigned int value;
    puts("Input a number: \n");
    scanf("%u",&value);
    bta(value);
    return 0;
    }